#include "SeqList.h"

void TestSeqList1()
{
	SL s;
	SLInit(&s);
	SLPushBack(&s, 1);
	SLPushBack(&s, 1);
	SLInsert(&s, 1, 3);
	SLInsert(&s, 3, 4);
	/*SLErase(&s, 3);
	SLErase(&s, 0);
	SLErase(&s, 1);*/
	printf("%d\n", SLFind(&s, 4));
	SLPrint(&s); 
	SLDestroy(&s);
}

void TestSeqList2()
{
	SL s;
	SLInit(&s);
	SLPushFront(&s, 1);
	SLPushFront(&s, 2);
	SLPushFront(&s, 3);
	SLPushFront(&s, 4);
	SLPushFront(&s, 5);
	SLErase(&s, 1);
	SLPopBack(&s);
	SLPopFront(&s);
	SLPrint(&s);
	SLDestroy(&s);
}
int main()
{
	//TestSeqList1();
	TestSeqList2();
	return 0;
}